import { Commit } from "vuex";

interface IState {
  loading: boolean;
}

interface ILoading {
  state: IState;
  actions: {
    show: ({ commit }: { commit: Commit }) => void;
    hide: ({ commit }: { commit: Commit }) => void;
  };
  mutations: {
    SHOW: (state: IState) => void;
    HIDE: (state: IState) => void;
  };
  namespaced: boolean;
}
export { ILoading };
